<extend name="Public/layout" />

<block name="content">
<section class="wrapper site-min-height">
    <!-- page start-->
    <section class="panel">
        <header class="panel-heading">
            管理员设置
            <span class="pull-right">
                <!--<a href="#add_auth" data-toggle="modal" class=" btn btn-success btn-xs">
                    <i class="fa fa-plus"></i> 新增
                </a>-->
                <button type="button" class="btn btn-warning btn-xs" onclick="window.location.reload()">
                    <i class="fa fa-refresh"></i> 刷新
                </button>
            </span>
        </header>
        <div class="panel-body">
            <div class="row">
                <div class="col-md-12">
                    <form class="form-inline" role="form" action="{:U('Admin/AdminLog/index')}" method="get">
                        <div class="form-group">
                            <label class="sr-only" for="username">用户名</label>
                            用户名 <input name="username" value="{$Think.get.username}" type="text" id="username" class="form-control"  placeholder="请输入搜索用户名">
                        </div>

                        <div class="form-group">
                            <label class="sr-only" for="route">路由</label>
                            路由 <input name="route" value="{$Think.get.route}" type="text" id="route" class="form-control"  placeholder="请输入搜索路由">
                        </div>

                        <div class="form-group">
                            日期
                            <input name="start_date" value="{$Think.get.start_date}" class="form-control" id="start_date" type="text" placeholder="请选择开始日期">-
                            <input name="end_date" value="{$Think.get.end_date}" class="form-control" id="end_date" type="text" placeholder="请选择结束日期">
                        </div>
                        <button type="submit" class="btn btn-info">
                            <i class="fa fa-search"></i>
                            搜索
                        </button>
                    </form>
                </div>

            </div>
        </div>
        <hr style="margin:1px 0px; "/>
        <div class="panel-body">
            <div class="table-responsive" tabindex="1" style="overflow: hidden; outline: none;">
                <table class="table table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>用户名</th>
                        <th>操作路由</th>
                        <th>操作名称</th>
                        <th>操作时间</th>
                        <th>操作IP</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <notempty name="list.list">


                    <volist name="list.list" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.username}</td>
                        <td>{$vo.route}</td>
                        <td>{$vo.title}</td>
                        <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>
                        <td>{$vo.add_ip}</td>
                        <td>
                            <a href="{:U('Admin/AdminLog/show')}?id={$vo.id}" class="btn btn-info btn-xs">
                                <i class="fa fa-eye"></i> 查看
                            </a>
                        </td>
                    </tr>
                    </volist>
                        <else/>
                        <tr><td colspan="7" align="center">暂无数据</td></tr>
                    </notempty>
                    </tbody>
                </table>
            </div>
            <!--分页-->
            <div class="text-center">
                {$list.page}
            </div>
        </div>
    </section>
</section>
</block>

<block name="javascript">
    <script type="text/javascript" src="__ADMIN__/assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="__ADMIN__/assets/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script>
    //菜单高
    MenuHighlight('{:U("Admin/AdminLog/index")}');
    //日期选择器
    $('#start_date,#end_date').datepicker();
</script>

</block>

<block name="style">
    <link href="__ADMIN__/assets/bootstrap-datepicker/css/bootstrap-datepicker.css" rel="stylesheet" />
</block>